printfn "%A" (Array.collect (fun elem -> [| 0 .. elem |]) [| 1; 5; 10|])